<?
require("config.php");

$label = "Product Type List";

$table="pro_type";

	$Query="SELECT 
	id,
	code,
	name 
	FROM $table ORDER BY id DESC";

	$r=myQuery($Query);

require($rela_path . "inc/header1.php");
?>
<br>
<br>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1" class="tb">    <tr class="tbheader"> 
    <td width="6%"> 
      <div align="center">No.</div>
    </td>
    <td width="16%"> 
      <div align="center">Type Code</div>
    </td>
    <td width="78%"> 
      <div align="center">Type Name</div>
    </td>
  </tr>


<?
if ($r){	
	for ($i=0;$i<count($r);$i++){?>
  <tr class="tbcontent1"> 
    <td width="2%" align="right"><?print($i+1)?></td>
    <td width="10%"><?print($r[$i][1])?></td>
    <td width="41%"><?print($r[$i][2])?></td>
  </tr>
<?}
}?>


</table>
<br>
<br>
<?
require($rela_path . "inc/footer1.php");
?>
